#include "solution.hpp"

void search()
{
	Solution s;
	vector<int> nums = { -1,0,3,5,9,12 };
	int target = 9;
	cout << s.search(nums, target) << endl;
}

void searchRange()
{
	Solution s;
	vector<int> nums = { 5,7,7,8,8,10 };
	int target = 8;
	vector<int> ret = s.searchRange(nums, target);
	for (auto r : ret) cout << r << " ";
}

void searchInsert()
{
	Solution s;
	vector<int> nums = { 1,3,5,6 };
	int target = 5;
	cout << s.searchInsert(nums, target) << endl;
}

void mySqrt()
{
	Solution s;
	int x = 8;
	cout << s.mySqrt(x) << endl;
}

void peakIndexInMountainArray()
{
	Solution s;
	vector<int> nums = { 3, 4, 5, 1 };
	cout << s.peakIndexInMountainArray(nums) << endl;
}
